package com.base.service;

import java.util.List;

import com.base.po.voip.ChangeRecord;
import com.base.po.voip.ChangeRecordExample;
import org.apache.ibatis.annotations.Param;

import com.base.utils.Page;

public interface ChangeRecordService {
	int countByExample(ChangeRecordExample example);

    int deleteByExample(ChangeRecordExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ChangeRecord record);

    int insertSelective(ChangeRecord record);

    List<ChangeRecord> selectByExample(ChangeRecordExample example);

    List<ChangeRecord> selectByAll(@Param("page") Page page, @Param("mobile") String mobile,
                                   @Param("parentid") String parentid, @Param("shopid") String shopid,
                                   @Param("dateFrom") String dateFrom, @Param("dateTo") String dateTo);

    List<ChangeRecord> selectByShopMoney(@Param("page") Page page, @Param("userid") String userid);

    List<ChangeRecord> selectByMoney(@Param("page") Page page, @Param("userId") String userId,
                                     @Param("typeB") Integer typeB);

    ChangeRecord selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ChangeRecord record, @Param("example") ChangeRecordExample example);

    int updateByExample(@Param("record") ChangeRecord record, @Param("example") ChangeRecordExample example);

    int updateByPrimaryKeySelective(ChangeRecord record);

    int updateByPrimaryKey(ChangeRecord record);

    int countByAll(@Param("mobile") String mobile, @Param("parentid") String parentid,
                   @Param("shopid") String shopid, @Param("dateFrom") String dateFrom,
                   @Param("dateTo") String dateTo);

    int countByShopMoney(String userid);

    int countByMoney( @Param("userId") String userId, @Param("typeB") Integer typeB);
}
